package com.erpanderp.wam.adm.model.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.erpanderp.wam.usm.model.entity.timesheet.TimesheetDetail;

public class Module implements Comparable<Module>{
	private Long moduleId;
	private String moduleName;
	private String displayOrder;
	private Date createDate;
	private Date dateModified;
	private String createdBy;
	private String modifiedBy;
	private String description;
	private String status;
	private Set<Resource> resources = new HashSet<Resource>();
	private Set<Service> services = new HashSet<Service>();
	private Set<ServiceGroup> serviceGroups = new HashSet<ServiceGroup>();
	private Set<WAMUserModule> wamUserModules = new HashSet<WAMUserModule>();
	
	public Date getDateModified() {
		return dateModified;
	}
	public void setDateModified(Date dateModified) {
		this.dateModified = dateModified;
	}
	public String getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}
	public String getModifiedBy() {
		return modifiedBy;
	}
	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Set<Resource> getResources() {
		return resources;
	}
	public void setResources(Set<Resource> resources) {
		this.resources = resources;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Long getModuleId() {
		return moduleId;
	}
	public void setModuleId(Long moduleId) {
		this.moduleId = moduleId;
	}
	public String getModuleName() {
		return moduleName;
	}
	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}
	public String getDisplayOrder() {
		return displayOrder;
	}
	public void setDisplayOrder(String displayOrder) {
		this.displayOrder = displayOrder;
	}
	public Set<Service> getServices() {
		return services;
	}
	public void setServices(Set<Service> services) {
		this.services = services;
	}
	public Set<ServiceGroup> getServiceGroups() {
		return serviceGroups;
	}
	public void setServiceGroups(Set<ServiceGroup> serviceGroups) {
		this.serviceGroups = serviceGroups;
	}
	public Set<WAMUserModule> getWamUserModules() {
		return wamUserModules;
	}
	public void setWamUserModules(Set<WAMUserModule> wamUserModules) {
		this.wamUserModules = wamUserModules;
	}

	@Override
	public int compareTo(Module o) {
		return getDisplayOrder().compareTo(o.getDisplayOrder());
	}
}
